apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: node-gpu-exporter
  labels:
    k8s-app: node-gpu-exporter
  namespace: monitoring
spec:
  selector:
    matchLabels:
      k8s-app: node-gpu-exporter
  namespaceSelector:
    matchNames:
    - monitoring
  endpoints:
  - port: http-metrics
    interval: 30s
